<!--
 * @Author: @xiaonancheng
 * @Date: 2023-03-23 21:18:46
 * https://www.cnblogs.com/xiaonancheng
 * Copyright (c) 2023 by @xiaonancheng, All Rights Reserved. 
-->
{% extends "admin_base.html" %}
{% block title %}
论坛管理
{% endblock %}

{% block subtitle %}
论坛管理/历史帖子
{% endblock %}


{% block main %}论坛管理{% endblock %}

{% block content %}

<!--表格健康档案-->
<section class="section profile">
  <div class="row">

    <section class="section">
      <div class="row">
        <div class="col-xl-12">

          <div class="card">
            <div class="card-body">
              <!-- <h5 class="card-title">
                <a class="btn btn-danger" href="#!"><i class="mdi mdi-window-close"></i> 批量删除</a>
              </h5> -->
              <h5></h5>

              <div class="table-responsive">
                <table class="table table-bordered">
                  <thead>
                    <tr>
                      <!-- <th>
                        <label class="lyear-checkbox checkbox-primary">
                          <input type="checkbox" id="check-all"><span></span>
                        </label>
                      </th> -->
                      <th>文章编号</th>
                      <th>文章标题</th>
                      <th>点赞数</th>
                      <th>发布人</th>
                      <th>发布日期</th>

                      <th>操作</th>
                    </tr>
                  </thead>
                  <tbody>
                    {% for post in posts %}
                    <tr>

                      <!-- <td>
                        <label class="lyear-checkbox checkbox-primary">
                          <input type="checkbox" name="ids[]" value="1"><span></span>
                        </label>
                      </td> -->
                      <td>{{post.post_id}}</td>
                      <td>{{post.post_title}}</td>
                      <td>{{post.users_like.count}}</td>
                      <td>{{post.u_id.user_name}}</td>
                      <td>{{post.c_time}}2</td>
                      <td>
                        <div class="btn-group">
                          <a type="button" class="btn btn-outline-info btn-sm" href="{% url 'adminApp:discuss_manage' %}?pid={{post.post_id}}&type=show">详情</a>
                          <span>|</span>
                          <!-- <a type="button" class="btn btn-outline-warning btn-sm" href="{% url 'adminApp:discuss_manage' %}?pid={{post.post_id}}&type=delete">查看评论</a>
                          <span>|</span> -->
                          <a type="button" class="btn btn-outline-danger btn-sm" href="{% url 'adminApp:discuss_manage' %}?pid={{post.post_id}}&type=delete">删除</a>
                        </div>
                      </td>
                    </tr>
                    {% endfor %}
                    
                  </tbody>
                </table>
              </div>
            </div>
          </div>
        </div>
      </div>
  </div>

</section>



{% endblock %}